#include <iostream>
#include <vector>
#include <pthread.h>
#include <unistd.h>
#include <mysql.h>
#include <stdarg.h>
#include <mutex>
#include "chatroom.h"
#include "db_manager.h"

/*int main() //if not shotdown this server it will forever listen
{
	db_manager my;
	//my.insert_usr("alex");
	//my.add_srcipt("tim", "可回收垃圾");
	//std::cout<<my.count_usr();
	//my.update_usr("tim");
	//my.
	//std::cout<<my.query_usr("shit");
	//std::cout<<"\n\nok";
	//return 0;
	std::map<std::string, int> now;
	my.get_all(now);
	std::cout<<now.size();

	return 0;
}//test main*/

int main()
{
	chatroom timServer;
	timServer.on();
	return 0;
}

/*int main()
{
	db_manager db;
	db.update_usr_cnt("tim");

	return 0;
}*/
